package com.mingzhi.order.bean;

import com.mingzhi.product.bean.Product;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@Tag(name = "订单信息")
public class Order {

    @Schema(description = "订单id")
    private Long id;

    @Schema(description = "订单总金额")
    private BigDecimal totalPrice;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "用户昵称")
    private String nickName;

    @Schema(description = "派送地址")
    private String address;

    @Schema(description = "订单商品")
    private List<Product> productList;
}
